'use strict'

let obj = {}
Object.defineProperty(obj, "key", {
  enumerable: true,
  configurable: true,
  get: function() { // 取值

    console.log("call get")
    return this.value
  },
  set: function(val) { // 赋值
    console.log("call set")
    this.value = val
  },
})
obj.key = 12
console.log("now running!")
